<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title><fmt:message key="appointment.title"/></title>
    <meta name="heading" content="<fmt:message key='appointment.entry.heading'/>"/>
</head>
<body>
<s:form id="appointmentForm" action="save" method="post" validate="true">
		<li style="display: none"><s:hidden key="appointment.id" /></li>
		<li>
			<div>
				<div class="left">
					<s:textfield key="appointment.occasion" theme="xhtml" required="true" cssClass="text medium" />
				</div>
				<div>
					<s:textfield key="appointment.appDate" theme="xhtml" required="true" cssClass="text medium" />
				</div>
				<div>
					<s:checkbox key="appointment.compl.flag" theme="xhtml" required="true" cssClass="text small" />
				</div>
			</div>
		</li>

		<li>
			<div>
				<div class="left">
					<s:textfield key="appointment.comments" theme="xhtml" required="true" cssClass="text large" />
				</div>
				
			</div>
		</li>

		<li class="buttonBar bottom">
			<s:submit cssClass="button" method="save" key="button.save" theme="simple" /> 
			<c:if test="${not empty appointment.id}">
				<s:submit cssClass="button" method="delete" key="button.delete" onclick="return confirmDelete('Person')" theme="simple" />
			</c:if> 
			<s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple" />
		</li>
	</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("personForm"));
</script>



</body>
</html>